import * as Router from "koa-router"
import { JwtAuth } from "../../middleware/jwt.auth"
import ChatController from "../../routerController/chat.controller"
const route: Router = new Router({ prefix: "/api/chat" })



route.use(JwtAuth)
//找到该用户所有好友列表(需要分页)  还未做·分页
route.get("/friendLists", ChatController.getFrinedLists)

//获取与某好友聊天记录
route.get("/friendChatRecord", ChatController.getFriendChatRecord)



export {
    route
}